package com.ruoyi.service;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.domain.Ridgepole;
import com.ruoyi.fallback.RidServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-information", path = "ridgepole", contextId = "RidService",fallbackFactory = RidServiceFallbackFactory.class)
public interface RidService {

    @GetMapping(value = "/{id}")
     AjaxResult getInfo(@PathVariable("id") Long id);

    @PutMapping
     AjaxResult edit(@RequestBody Ridgepole ridgepole);
}
